import request from '@/utils/request'

// 查询患者调查文件结果列表
export function listPatientQuestion(query) {
    return request({
        url: '/keyan/patientQuestion/list',
        method: 'get',
        params: query
    })
}

// 查询患者调查文件结果详细
export function getPatientQuestion(id) {
    return request({
        url: '/keyan/patientQuestion/' + id,
        method: 'get'
    })
}

// 新增患者调查文件结果
export function addPatientQuestion(data) {
    return request({
        url: '/keyan/patientQuestion',
        method: 'post',
        data: data
    })
}

// 修改患者调查文件结果
export function updatePatientQuestion(data) {
    return request({
        url: '/keyan/patientQuestion',
        method: 'put',
        data: data
    })
}

// 删除患者调查文件结果
export function delPatientQuestion(id) {
    return request({
        url: '/keyan/patientQuestion/' + id,
        method: 'delete'
    })
}
